package com.yuqing.sentimentapp.login.module;

import com.linkface.baselibrary.http.RetrofitClient;
import com.yuqing.sentimentapp.api.ApiService;
import com.yuqing.sentimentapp.login.acitivity.VerifyCodeActivity;
import com.yuqing.sentimentapp.login.bean.LoginResultBean;
import com.yuqing.sentimentapp.module.ModuleManager;

import io.reactivex.Observable;

/**
 * Created by ShenHe on 2019/4/10.
 */

public class LoginModule {
    public Observable<LoginResultBean> requestLoginResult(VerifyCodeActivity verifyCodeActivity, String phone, String verifyCode) {
        return RetrofitClient.getInstance(verifyCodeActivity, null, ModuleManager.getInstance().getHeaderMap()).create(ApiService.class).postLogin(phone, verifyCode);
    }
}
